package com.sskj.api.vo.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import java.util.List;

@Data
@Schema(description = "管理用户新增请求类")
public class AdminUserAddReq {

    @NotBlank(message = "手机号不能为空")
    @Schema(description = "手机号")
    private String phone;

    @NotBlank(message = "用户名不能为空")
    @Schema(description = "用户名")
    private String name;

    @NotBlank(message = "密码不能为空")
    @Schema(description = "密码")
    private String password;

    @Schema(description = "角色列表。多个角色用,隔开")
    private List<Long> roleIds;

    @Schema(description = "所属部门ID")
    private Long departmentId;

    @Schema(description = "岗位ID")
    private Long positionId;
}
